package com.rzjm.exercise.common.web.conf;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Component
class WebConfigurer implements WebMvcConfigurer {
//	@Resource
//    BootdoConfig bootdoConfig;
	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
//		registry.addResourceHandler("/file/**").addResourceLocations("file:///" + bootdoConfig.getUploadPath());
		registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");

	}
}
